package com.qidianit.springboot.entity;

import java.util.Date;

//注释测试
public class Student extends BaseEntity{
    private Integer id;

    private String stu_name;

    private Integer age;

    private String email;

    private Date entryTime;


    private StuDetail stuDetail;

    public Student() {
    }

    public Student(Integer id, String stu_name, Integer age) {
        this.id = id;
        this.stu_name = stu_name;
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStu_name() {
        return stu_name;
    }

    public void setStu_name(String stu_name) {
        this.stu_name = stu_name == null ? null : stu_name.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Date getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    public StuDetail getStuDetail() {
        return stuDetail;
    }

    public void setStuDetail(StuDetail stuDetail) {
        this.stuDetail = stuDetail;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", stu_name='" + stu_name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", entryTime=" + entryTime +
                ", stuDetail=" + stuDetail +
                "} " + super.toString();
    }
}